package com.nuoniu.sibanyun.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nuoniu.sibanyun.entity.SendSms;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 短信记录 Mapper 接口
 * </p>
 *
 * @author baiqiang
 * @since 2020-06-11
 */
@Component
@Mapper
public interface SendSmsMapper extends BaseMapper<SendSms> {

    /**
     * 获取当天记录
     * @author 小啊刚
     * @date 2020/6/11
     */
    @Select("select * from sys_send_sms where phone = #{userPhone} and date(create_date) = date(now())")
    List<SendSms> getSendSmsList(Map<String, String> param);
}
